Tables [dbo].[Interest_Category]
Properties
PropertyValue
Created10:31:25 AM Tuesday, March 02, 2010
Last Modified11:40:03 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_Interest_Category: InterestCategoryIDInterestCategoryIDnumeric(18,0)9
No
1 - 1
Namevarchar(255)255
No
Descriptionvarchar(255)255
Yes
IndustryFlagchar(1)1
Yes
SICCodevarchar(4)4
Yes
Indexes IX_CATEGORY_PARENT2: ParentCategoryIDParentCategoryIDnumeric(18,0)9
Yes
AncestorCategoryIDnumeric(18,0)9
Yes
CategoryDepthnumeric(18,0)9
Yes
AncestorOrdernumeric(28,18)13
Yes
SortOrdernumeric(28,18)13
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_Interest_Category: InterestCategoryIDPK_Interest_CategoryInterestCategoryID
Yes
IX_CATEGORY_PARENT2ParentCategoryID
Permissions
TypeActionOwning Principal
GrantDeleteIMIS
GrantInsertIMIS
GrantReferencesIMIS
GrantSelectIMIS
GrantUpdateIMIS
SQL Script
CREATE TABLE [dbo].[Interest_Category]
(
[InterestCategoryID] [numeric] (18, 0) NOT NULL IDENTITY(1, 1),
[Name] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IndustryFlag] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SICCode] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ParentCategoryID] [numeric] (18, 0) NULL,
[AncestorCategoryID] [numeric] (18, 0) NULL,
[CategoryDepth] [numeric] (18, 0) NULL,
[AncestorOrder] [numeric] (28, 18) NULL,
[SortOrder] [numeric] (28, 18) NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[Interest_Category] ADD CONSTRAINT [PK_Interest_Category] PRIMARY KEY CLUSTERED ([InterestCategoryID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CATEGORY_PARENT2] ON [dbo].[Interest_Category] ([ParentCategoryID]) ON [PRIMARY]
GO
GRANT REFERENCES ON  [dbo].[Interest_Category] TO [IMIS]
GRANT SELECT ON  [dbo].[Interest_Category] TO [IMIS]
GRANT INSERT ON  [dbo].[Interest_Category] TO [IMIS]
GRANT DELETE ON  [dbo].[Interest_Category] TO [IMIS]
GRANT UPDATE ON  [dbo].[Interest_Category] TO [IMIS]
GO
Uses
Used By